package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public CommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCommentIdIsNull() {
            addCriterion("comment_id is null");
            return (Criteria) this;
        }

        public Criteria andCommentIdIsNotNull() {
            addCriterion("comment_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommentIdEqualTo(Integer value) {
            addCriterion("comment_id =", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotEqualTo(Integer value) {
            addCriterion("comment_id <>", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThan(Integer value) {
            addCriterion("comment_id >", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_id >=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThan(Integer value) {
            addCriterion("comment_id <", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThanOrEqualTo(Integer value) {
            addCriterion("comment_id <=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdIn(List<Integer> values) {
            addCriterion("comment_id in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotIn(List<Integer> values) {
            addCriterion("comment_id not in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdBetween(Integer value1, Integer value2) {
            addCriterion("comment_id between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_id not between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentDescIsNull() {
            addCriterion("comment_desc is null");
            return (Criteria) this;
        }

        public Criteria andCommentDescIsNotNull() {
            addCriterion("comment_desc is not null");
            return (Criteria) this;
        }

        public Criteria andCommentDescEqualTo(String value) {
            addCriterion("comment_desc =", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescNotEqualTo(String value) {
            addCriterion("comment_desc <>", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescGreaterThan(String value) {
            addCriterion("comment_desc >", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescGreaterThanOrEqualTo(String value) {
            addCriterion("comment_desc >=", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescLessThan(String value) {
            addCriterion("comment_desc <", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescLessThanOrEqualTo(String value) {
            addCriterion("comment_desc <=", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescLike(String value) {
            addCriterion("comment_desc like", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescNotLike(String value) {
            addCriterion("comment_desc not like", value, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescIn(List<String> values) {
            addCriterion("comment_desc in", values, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescNotIn(List<String> values) {
            addCriterion("comment_desc not in", values, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescBetween(String value1, String value2) {
            addCriterion("comment_desc between", value1, value2, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andCommentDescNotBetween(String value1, String value2) {
            addCriterion("comment_desc not between", value1, value2, "commentDesc");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andCommentTimeIsNull() {
            addCriterion("comment_time is null");
            return (Criteria) this;
        }

        public Criteria andCommentTimeIsNotNull() {
            addCriterion("comment_time is not null");
            return (Criteria) this;
        }

        public Criteria andCommentTimeEqualTo(Date value) {
            addCriterion("comment_time =", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeNotEqualTo(Date value) {
            addCriterion("comment_time <>", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeGreaterThan(Date value) {
            addCriterion("comment_time >", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("comment_time >=", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeLessThan(Date value) {
            addCriterion("comment_time <", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeLessThanOrEqualTo(Date value) {
            addCriterion("comment_time <=", value, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeIn(List<Date> values) {
            addCriterion("comment_time in", values, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeNotIn(List<Date> values) {
            addCriterion("comment_time not in", values, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeBetween(Date value1, Date value2) {
            addCriterion("comment_time between", value1, value2, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentTimeNotBetween(Date value1, Date value2) {
            addCriterion("comment_time not between", value1, value2, "commentTime");
            return (Criteria) this;
        }

        public Criteria andCommentPointIsNull() {
            addCriterion("comment_point is null");
            return (Criteria) this;
        }

        public Criteria andCommentPointIsNotNull() {
            addCriterion("comment_point is not null");
            return (Criteria) this;
        }

        public Criteria andCommentPointEqualTo(Integer value) {
            addCriterion("comment_point =", value, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointNotEqualTo(Integer value) {
            addCriterion("comment_point <>", value, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointGreaterThan(Integer value) {
            addCriterion("comment_point >", value, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_point >=", value, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointLessThan(Integer value) {
            addCriterion("comment_point <", value, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointLessThanOrEqualTo(Integer value) {
            addCriterion("comment_point <=", value, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointIn(List<Integer> values) {
            addCriterion("comment_point in", values, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointNotIn(List<Integer> values) {
            addCriterion("comment_point not in", values, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointBetween(Integer value1, Integer value2) {
            addCriterion("comment_point between", value1, value2, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentPointNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_point not between", value1, value2, "commentPoint");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdIsNull() {
            addCriterion("comment_img_id is null");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdIsNotNull() {
            addCriterion("comment_img_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdEqualTo(Integer value) {
            addCriterion("comment_img_id =", value, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdNotEqualTo(Integer value) {
            addCriterion("comment_img_id <>", value, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdGreaterThan(Integer value) {
            addCriterion("comment_img_id >", value, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_img_id >=", value, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdLessThan(Integer value) {
            addCriterion("comment_img_id <", value, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdLessThanOrEqualTo(Integer value) {
            addCriterion("comment_img_id <=", value, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdIn(List<Integer> values) {
            addCriterion("comment_img_id in", values, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdNotIn(List<Integer> values) {
            addCriterion("comment_img_id not in", values, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdBetween(Integer value1, Integer value2) {
            addCriterion("comment_img_id between", value1, value2, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andCommentImgIdNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_img_id not between", value1, value2, "commentImgId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerIsNull() {
            addCriterion("comment_answer is null");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerIsNotNull() {
            addCriterion("comment_answer is not null");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerEqualTo(String value) {
            addCriterion("comment_answer =", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotEqualTo(String value) {
            addCriterion("comment_answer <>", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerGreaterThan(String value) {
            addCriterion("comment_answer >", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("comment_answer >=", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerLessThan(String value) {
            addCriterion("comment_answer <", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerLessThanOrEqualTo(String value) {
            addCriterion("comment_answer <=", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerLike(String value) {
            addCriterion("comment_answer like", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotLike(String value) {
            addCriterion("comment_answer not like", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerIn(List<String> values) {
            addCriterion("comment_answer in", values, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotIn(List<String> values) {
            addCriterion("comment_answer not in", values, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerBetween(String value1, String value2) {
            addCriterion("comment_answer between", value1, value2, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotBetween(String value1, String value2) {
            addCriterion("comment_answer not between", value1, value2, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerIsNull() {
            addCriterion("isanswer is null");
            return (Criteria) this;
        }

        public Criteria andIsanswerIsNotNull() {
            addCriterion("isanswer is not null");
            return (Criteria) this;
        }

        public Criteria andIsanswerEqualTo(Integer value) {
            addCriterion("isanswer =", value, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerNotEqualTo(Integer value) {
            addCriterion("isanswer <>", value, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerGreaterThan(Integer value) {
            addCriterion("isanswer >", value, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerGreaterThanOrEqualTo(Integer value) {
            addCriterion("isanswer >=", value, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerLessThan(Integer value) {
            addCriterion("isanswer <", value, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerLessThanOrEqualTo(Integer value) {
            addCriterion("isanswer <=", value, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerIn(List<Integer> values) {
            addCriterion("isanswer in", values, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerNotIn(List<Integer> values) {
            addCriterion("isanswer not in", values, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerBetween(Integer value1, Integer value2) {
            addCriterion("isanswer between", value1, value2, "isanswer");
            return (Criteria) this;
        }

        public Criteria andIsanswerNotBetween(Integer value1, Integer value2) {
            addCriterion("isanswer not between", value1, value2, "isanswer");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}